<?php
/**
 * JE Career package
 * @author J-Extension <contact@jextn.com>
 * @link http://www.jextn.com
 * @copyright (C) 2012 - 2013 J-Extension
 * @license GNU/GPL, see LICENSE.php for full license.
**/

defined('_JEXEC') or die('Restricted access');

?>
<script type="text/javascript">
function display(asas)
{

	if(asas==1)
	{

		document.getElementById("resume").hidden 		= false;
		document.getElementById("text_resume").hidden 	= true;
	}
	if(asas==2)
	{

		document.getElementById("text_resume").hidden 	= false;
		document.getElementById("resume").hidden 		= true;
	}

}
</script>
<?php $link1 		= JRoute::_( 'upload_hostingrajacareer/'.$this->row->resume.'' ); ?>
<form action="index.php" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data">
<fieldset class="adminform">
	<legend><?php echo JText::_( 'JE_APPLIED_OPENINGS' );?></legend>
		<table class="admintable">
		<tr>
			<td width="100" align="right" class="key">
				<label for="name">
					<?php echo JText::_( 'JE_FULL_NAME' ); ?>:
				</label>
			</td>
			<td>
			<?php echo $this->row->fullname; ?>
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key">
				<label for="name">
					<?php echo JText::_( 'JE_EMAIL' ); ?>:
				</label>
			</td>
			<td>
			<?php echo $this->row->email; ?>
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key">
				<label for="name">
					<?php echo JText::_( 'JE_MOBILE' ); ?>:
				</label>
			</td>
			<td>
				<?php echo $this->row->mobile; ?>
			</td>
		</tr>
		<?php if($this->row->resume==null){$upres="display:none;";}else{$upres="";} ?>
		<tr style="<?php echo $upres; ?>">
			<td width="100" align="right" class="key" >
				<label for="name">
					<?php echo JText::_( 'JE_UPLOAD_RESUME' ); ?>:
				</label>
			</td>
			<td>
			<a href="<?php echo $link1; ?>" target="_blank"><?php echo $this->row->resume; ?></a>
			</td>
		</tr>
		<?php if($this->row->text_resume=='Paste here'){$uptxt="display:none;";}else{$uptxt="";} ?>
		<tr style="<?php echo $uptxt; ?>">
			<td width="100" align="right" class="key" >
				<label for="name">
				<?php echo JText::_( 'JE_UPLOADED_TEXT' ); ?>:
			</label>
			</td>
			<td id="upfile">
			<?php echo $this->row->text_resume; ?>
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key" >
				<label for="name">
				<?php echo JText::_( 'JE_FOR_POSITION' ); ?>:
			</label>
			</td>
			<td >
			<?php echo $this->row->position; ?>
			</td>
		</tr>
	</table>
	</fieldset>
<div class="clr"></div>
<input type="hidden" name="position" value="<?php echo $this->row->position; ?>" />
<input type="hidden" name="option" value="com_hostingrajacareer" />
<input type="hidden" name="id" value="<?php echo $this->row->id; ?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="controller" value="applied_openings" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
